package cn.openea.perpartner.meily.interceptor;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import javax.annotation.Resource;

/**
 * @author Weird077
 * @description TODO
 * @date 2022-12-01 19:04
 */
@Configuration
public class MeilyWebMvcConfigurer implements WebMvcConfigurer {
    @Resource
    private MeiyPermissionInterceptor meiyPermissionInterceptor;
    @Override
    public void addInterceptors(InterceptorRegistry registry) {

        registry.addInterceptor(meiyPermissionInterceptor).addPathPatterns("/**");
    }
}
